package com.xusheng.cli.req;

import cn.hutool.core.date.DatePattern;
import com.xusheng.cli.common.base.BaseRequest;
import com.xusheng.cli.entity.videoModule.Video;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class VideoQueryReq extends BaseRequest<Video> {

    private static final long serialVersionUID = 1007400723304947861L;
    /**
     * 频道编号
     */
    private Long categoryId;
    /**
     * 标题
     */
    private String title;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime startTime;
    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime endTime;
    private Boolean vip;
    private Boolean shortVideo;
    private Long actressId;

}
